<!--
 * @description:  
 * @author: sleep
 * @Date: 2019-08-22 19:41:20
 * @LastEditors: zhaoqiang zhaoqiang@qq.com
 * @LastEditTime: 2024-01-28 20:45:09
-->
<template>
	<view class="contina">
		<view class="w">
			<template v-for="item in list">
				<view style="padding-top: 20rpx;display: flex;justify-content: space-between;">
					<view class="tipMsg">
						<view class="title">
							系统提醒
						</view>
						<view class="msg">
							<text v-html="item.content"></text>
						</view>
					</view>
					<image style="width: 115rpx;height: 160rpx;" src="../../static/image/robot.png"></image>
				</view>
			</template>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			}
		},
		onShow() {
			this.getTip()
		},
		methods: {
			async getTip(){
				let res = await this.$api.homeApi.getTip()
				this.list = res.list
			}
		}
	}
</script>

<style lang="scss" scoped>
	.contina {
		height: 100%;
		background-color: #0174FE;
		padding-bottom: 0;
		.tips_1 {
			font-size: 32rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color: #FFFFFF;
		}

		.tips_2 {
			width: 60%;
			font-size: 32rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color: #FFFFFF;
			// 超出省略号
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		.tips_2_img {
			width: 62rpx;
			height: 62rpx;
			border-radius: 50%;
			background-color: #CCDEFC;
			display: flex;
			align-items: center;
			justify-content: center;

			image {
				width: 60%;
				height: 65%;
			}
		}

		.tipMsg {
			width: 564rpx;
			box-sizing: border-box;
			background-color: #fff;
			padding: 20rpx;
			border-radius: 5px 5px 5px 5px;
			position: relative;

			.title {
				font-size: 24rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				color: #0074FF;
			}

			.msg {
				font-size: 24rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				color: #3D3D3D;
				margin-top: 10rpx;
				letter-spacing: 1rpx;
			}
		}

		.tipMsg::after {
			content: ' ';
			display: block;
			width: 0;
			height: 0;
			border-width: 10px;
			border-style: solid;
			border-top-color: transparent;
			border-right-color: transparent;
			border-bottom-color: transparent;
			border-left-color: #fff;
			position: absolute;
			top: 23rpx;
			right: -37rpx;
		}
	}
</style>